﻿using System;
using System.Collections.Generic;

namespace autoMessage.Entities;

/// <summary>
/// 角色信息表
/// </summary>
public partial class SysRole
{
    /// <summary>
    /// 角色ID
    /// </summary>
    public long RoleId { get; set; }

    /// <summary>
    /// 角色名称
    /// </summary>
    public string RoleName { get; set; } = null!;

    /// <summary>
    /// 角色权限字符串
    /// </summary>
    public string RoleKey { get; set; } = null!;

    /// <summary>
    /// 显示顺序
    /// </summary>
    public int RoleSort { get; set; }

    /// <summary>
    /// 数据范围（1：全部数据权限 2：自定数据权限 3：本部门数据权限 4：本部门及以下数据权限）
    /// </summary>
    public string? DataScope { get; set; }

    /// <summary>
    /// 角色状态（0正常 1停用）
    /// </summary>
    public string Status { get; set; } = null!;

    /// <summary>
    /// 删除标志（0代表存在 2代表删除）
    /// </summary>
    public string? DelFlag { get; set; }

    /// <summary>
    /// 创建者
    /// </summary>
    public string? CreateBy { get; set; }

    /// <summary>
    /// 创建时间
    /// </summary>
    public DateTime? CreateTime { get; set; }

    /// <summary>
    /// 更新者
    /// </summary>
    public string? UpdateBy { get; set; }

    /// <summary>
    /// 更新时间
    /// </summary>
    public DateTime? UpdateTime { get; set; }

    /// <summary>
    /// 备注
    /// </summary>
    public string? Remark { get; set; }
}
